package ch.bfh.abcm.rems.controller;

public class MessageElement {

    public enum MulticastType {
        PERIODIC_NOTIFICATION, SYSTEM_ERROR, MEASUREMENT_DIVERGENCE, SYSTEM_OK;
    }

    private MulticastType multicastType;
    private String message;

    public MessageElement(MulticastType multicastType, String message) {
        super();
        this.multicastType = multicastType;
        this.message = message;
    }

    public MulticastType getMulticastType() {
        return multicastType;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "MessageElement [multicastType=" + multicastType + ", message=" + message + "]";
    }

}
